package com.tianji.api.client.remark;


import com.tianji.api.client.remark.fallback.RemarkClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "remark-service",fallbackFactory = RemarkClientFallback.class)
public interface RemarkClient {

    /**
     *  查询当前用户是否点赞了指定的业务
     * @param bizIds 业务id
     * @return 当前用户点赞过的业务id
     */
    @GetMapping("/likes/list")
    List<Long> queryIsLikedBizIds(@RequestParam("bizIds") List<Long> bizIds);
}
